package InheritanceDemo;

public class TestInheritance2 {
    public static void main(String[] args) {
        Person p1 = new Student("S2025002","李四",92);
        Person p2 = new Teacher("T2025001","王五","副教授");

        p1.showInfo();
        System.out.println("------------");
        p2.showInfo();
    }
}
